require("../css/advertisement.css")


window.onload = function(){
    // 获取dom
    let s = document.querySelector(".s")
    // 添加定时器
    let n =5;
    let time = setInterval(function(){
            
        if( n > 0 ){
            s.textContent = n+"S";
            n--;
        }else{
            clearInterval( time );
            location.href = "register.html";
        }
     },1000)

    //  获取dom 
    let content = document.querySelector(".content")
    // 点击跳转页面
    content.addEventListener("click",function(){
        location.href = "register.html";
    })
}



